package com.neo.core.controller;


import com.neo.core.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author
 * @since 2022-10-18
 */
@RestController
@RequestMapping("neo/api/v1/teacher")
public class TeacherController {


    @Autowired
    private TeacherService teacherService;

    @GetMapping("get")
    public String get() {
        return teacherService.getById(1).toString();
    }

}

